/**
 * 北京中流科技有限公司 版权所有
 * http://www.chinasoa.com.cn
 */
package cn.com.chinasoa.course.subscribe.test;

import javax.persistence.EntityManager;

import cn.com.chinasoa.course.subscribe.model.TrainingSubject;
import cn.com.chinasoa.course.subscribe.util.EntityManagerHelper;

/**
 * @author 刘洋(liuyang@chinasoa.com.cn)
 * 2007-11-3下午10:22:23
 */
public class TrainingAddressFind {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		EntityManager em = EntityManagerHelper.getEntityManager();
		em.getTransaction().begin();
		TrainingSubject tTrainingSubject = em.find(TrainingSubject.class,101l);
		System.out.println(tTrainingSubject);
		em.getTransaction().commit();
		EntityManagerHelper.closeEntityManager();
	}

}
